home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 11 / FM Towns Free Software Collection 11.iso / t_os / shell / mscope / src / gui.c next >
Encoding:
C/C++ Source or Header  |  1995-04-30  |  2.0 KB  |  89 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    windowID ;
  9. extern int    MJ_BASEOBJ ;
  10. extern int    windowFunc() ;
  11. extern int    quitIconID ;
  12. extern int    quitFunc() ;
  13. extern int    upIconID ;
  14. extern int    upDownFunc() ;
  15. extern int    downIconID ;
  16.  
  17. #define ALIGN    4
  18. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  19.  
  20. /*    MMI_init 用データ    */
  21.  
  22. /*    ヘッダ    */
  23.  
  24. MMIINIT    initDataGUI = { "MmiInit",   4, 0 } ;
  25.  
  26. /* windowID */
  27.  
  28. static MMIPACKET d001 = {    &windowID,
  29.                             &MJ_BASEOBJ,
  30.                             &MJ_WINDOWL40,
  31.                             OFFSET(WINDOWL40),
  32.                             MS_NONE
  33.                         } ;
  34. static WINDOWL40    d001d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_HIDEL40 | MS_RESIZEL40,
  35.                                0,   0,  65,  34, 8, 9,15,
  36.                             MS_PANELL40 | MS_BFRAMEL40 | MS_FRAMEL40,
  37.                             NULL,   0,   0,
  38.                                0,   0,   0,   0,
  39.                               66,  35,1024, 512,
  40.                             windowFunc,
  41.                             NULL,
  42.                         } ;
  43.  
  44. /* quitIconID */
  45.  
  46. static MMIPACKET d002 = {    &quitIconID,
  47.                             &windowID,
  48.                             &MJ_ICONL40,
  49.                             OFFSET(ICONL40),
  50.                             MS_NONE
  51.                         } ;
  52. static ICONL40    d002d =     {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_CENTERL40,
  53.                                3,  17,  17,  31, 8, 9, 2,
  54.                             MS_PANELL40 | MS_BFRAMEL40 | MS_FRAMEL40,
  55.                             quitFunc,
  56.                             0x801d, 512
  57.                         } ;
  58.  
  59. /* upIconID */
  60.  
  61. static MMIPACKET d003 = {    &upIconID,
  62.                             &windowID,
  63.                             &MJ_ICONL40,
  64.                             OFFSET(ICONL40),
  65.                             MS_NONE
  66.                         } ;
  67. static ICONL40    d003d =     {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_CENTERL40,
  68.                               18,  17,  32,  31, 8, 9,11,
  69.                             MS_PANELL40 | MS_BFRAMEL40 | MS_FRAMEL40,
  70.                             upDownFunc,
  71.                             0x001e, 513
  72.                         } ;
  73.  
  74. /* downIconID */
  75.  
  76. static MMIPACKET d004 = {    &downIconID,
  77.                             &windowID,
  78.                             &MJ_ICONL40,
  79.                             0,
  80.                             MS_NONE
  81.                         } ;
  82. static ICONL40    d004d =     {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_CENTERL40,
  83.                               33,  17,  47,  31, 8, 9,11,
  84.                             MS_PANELL40 | MS_BFRAMEL40 | MS_FRAMEL40,
  85.                             upDownFunc,
  86.                             0x001f, 514
  87.                         } ;
  88.  
  89.